export function isUrl(s) {
  return /^http[s]?:\/\/.*/.test(s);
}

export function isBase64ImageUrl(str) {
  const base64Regex = /^data:image\/([a-z]+);base64,/;
  return base64Regex.test(str);
}
